package com.lambda.demo.stream;

import com.lambda.demo.models.AuthorsData;


public class StreamFilterTest {
  public static void main(String[] args) {
//    要求找到年龄>100岁的作家
    AuthorsData.getAuthors().stream()
      .filter(a -> a.getAge() > 100).forEach(a -> System.out.println(a.getName()));
  }
}
